<ion-view view-title="蓝牙设置">

  <ion-nav-bar class="item-customer-bg-darkred" align-title="center">
    <ion-nav-back-button class="button-clear">
      <i class="ion-arrow-left-c font_arrow"></i>
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content class="padding">

    <button class="button button-block button-positive" ng-click="isEnabled()">
      检测手机蓝牙状态
    </button>
    <button class="button button-block button-positive" ng-click="searchBtDevices()">
      搜索蓝牙设备
    </button>

    <p>手机蓝牙状态：{{params.bluetoothStatus}}</p>
    <p>默认蓝牙读卡器：{{params.defaultBluetoothDevice.name}}</p>

    <div class="list">
      <ion-radio ng-repeat="item in params.bluetoothDevices" ng-click="doPaireDevices(item)" ng-value="item.name" ng-model="params.defaultBluetoothDevice.name" >
        {{ item.name }}
      </ion-radio>
    </div>
  </ion-content>
</ion-view>
